package iceworld.fernado.util;

import iceworld.fernado.consts.Constants;

final public class SystemResource {

	private SystemResource() {
	}
	
	private static final SystemResource instance = new SystemResource();
	
	public static SystemResource getInstance() {
		return instance;
	}
	
	private String projectFolder;
	
	public String getProjectFolder() {
		if (Utils.isEmpty(projectFolder)) {
			projectFolder = SystemResource.class.getClassLoader().getResource(Constants.EMPTY_STRING).getPath();
			projectFolder = projectFolder + Constants.PRE1_PARENT_FOLDER;
		}
		return projectFolder;
	}
}
